package com.enjoyor.soa.traffic.api.service.dubbo.serverpush;

import com.alibaba.fastjson.JSONObject;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

//@Service(protocol = { "dubbo" })
public interface DubboServerpushToolService {
	/**
	 * 
	 * @Title: push
	 * @Description: 发布消息
	 * @param channel
	 * @param message
	 * @return
	 * @return: ResultPojo
	 */
	public ResultPojo push(String namespace, JSONObject message); 
	
	/**
	 * 
	 * @Title: push
	 * @Description: TODO
	 * @param namespace
	 * @param event
	 * @param message
	 * @return
	 * @return: ResultPojo
	 */
	public ResultPojo push(String namespace, String event, JSONObject message); 
}
